package com.sunny.design.bridge.message;

/**
 * @author Sunny
 * @date 2020/3/9
 */
public class MessageTest {
    public static void main(String[] args) {
        IMessage message = new EmailMessage();
        AbstractMessage abstractMessage = new NormalSpeedMessage(message);

        abstractMessage.send("感谢信", "Sunny");

        abstractMessage = new UrgencySpeedMessage(message);

        abstractMessage.send("感谢信", "Sunny");

    }
}
